/*
 *------------------------------------------------------------------------------
 * @File      :    ei_mai_common.h
 * @Date      :    2021-4-8
 * @Author    :    lomboswer <lomboswer@lombotech.com>
 * @Brief     :    Media Interface for MADP(Media Development Platform).
 *
 * Copyright (C) 2020-2021, LomboTech Co.Ltd. All rights reserved.
 *------------------------------------------------------------------------------
 */

#ifndef __EI_MAI_COMMON_H__
#define __EI_MAI_COMMON_H__

#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif

#include "ei_common.h"
#include "ei_defines.h"

#define EI_MAI_DEFAUT_ALIGN_SIZE	32

#define EI_MAI_VISS_DVP_DEV			0
#define EI_MAI_VISS_MIPI_DEV		1

#define ALIGN_UP(x, align) (((int)(x) + (align - 1)) & ~(align -1))
#define ALIGN_DOWN(x, align) (((int)(x) & ~(align -1)))

#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif

#endif
